package cn.b504.qpcr.entity

class ErrorCode {
  companion object {
    const val UNKNOWN = 0
    const val FAIL = 1
    const val REQUEST_PARAM_ERROR = 2
    const val FILE_NOT_FOUND = 3
    const val DIRECTORY_NOT_FOUND = 4
    const val CSV_IO_EXCEPTION = 5
    const val DOUBLE_VALUE_OF_EXCEPTION = 6
    const val PROTOCOL_MELT_MODE_ERROR = 7
    const val NO_CONNECT_PERMISSION = 8

    @Deprecated("", ReplaceWith("DEVICE_NOT_FOUND"))
    const val NO_DEVICE_ERROR = 9
    const val RUN_PROGRAM_ERROR = 10
    const val DOWNLOAD_PROGRAM_ERROR = 11
    const val SET_EXPERIMENT_DATA_FILE_NAME_ERROR = 12
    const val DEVICE_WORKING = 13
    const val DEVICE_PAUSING = 14
    const val DEVICE_NOT_WORK = 15
    const val USER_OR_PASSWORD_WRONG = 16
    const val USER_NOT_FOUND = 17
    const val USER_NAME_REPEAT = 18
    const val USER_ID_REPEAT = 19
    const val USER_OVER_LIMIT = 20
    const val USER_EXPIRES = 21
    const val FILE_UPLOAD_FAIL = 22
    const val DEVICE_UNREGISTER = 23
    const val DEVICE_CONNECT_FAIL = 24
    const val DEVICE_NOT_FOUND = 25
    const val TRAY_ERROR = 26
  }
}

class ProgramStepName {
  companion object {
    const val NONE: Short = 0
    const val CONSTANT_TEMP: Short = 23281
    const val GRADIENT_TEMP: Short = 23282
    const val GOTO: Short = 23283
    const val END: Short = 23284
  }
}

class MeltingCurveMode {
  companion object {
    const val NONE: Byte = 0
    const val MELTING_CURVE: Byte = 1
    const val HR_MELTING_CURVE: Byte = 2
  }
}

class WorkStatus {
  companion object {
    const val NOT_WORK: Short = 256
    const val WORK: Short = 512
    const val PAUSE: Short = 768
  }
}